package com.exmaple.utils;

import java.util.Calendar;
import java.util.Date;

/*
 * @className: TimeUtils
 * @author: chentao
 * @date: 2025/3/17 上午9:58
 * @Version: 1.0
 * @description:
 */
public class TimeUtils {

    public static Date getTime(int sec){
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.SECOND , sec);
        return calendar.getTime();
    }
}
